//
//  NSString+JRMFEncrypt.h
//  JRMFMobileVerify
//
//  Created by Criss on 2017/12/26.
//  Copyright © 2017年 SONG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCryptor.h>
#import <CommonCrypto/CommonDigest.h>

@interface NSString (JRMFEncrypt)

/**
 des + base64
 */
- (NSString *)threeDesAndBase64EncryWithKey:(NSString *)key;
- (NSString *)threeDesAndBase64DecryptWithKey:(NSString *)key;


/**
 des
 */
- (NSString *)desEncryWithKey:(NSString *)key;
- (NSString *)desDecryptWithKey:(NSString*)key;

/**
 base64
 */
- (NSString *)base64EncodedString;
- (NSString *)base64DecodedString;

/**
 3des + base64
 */
- (NSString*)threeDesAndBase64EncOrDec:(CCOperation)encryptOrDecrypt key:(NSString *)keyInput;
@end
